//
//  XBMenuLayout.m
//  Home
//
//  Created by 陈明茂 on 16/3/29.
//  Copyright © 2016年 iOS. All rights reserved.
//

#import "XBMenuLayout.h"


@implementation XBMenuLayout

- (void)prepareLayout{
    
    CGFloat margin = 10;
    CGFloat itemH = self.collectionView.frame.size.height - margin * 2;
    self.itemSize = CGSizeMake(itemH, itemH);
    self.scrollDirection = UICollectionViewScrollDirectionHorizontal;
    self.minimumInteritemSpacing = 10;
//    self.collectionView.backgroundColor = [UIColor whiteColor];
    self.sectionInset = UIEdgeInsetsMake(margin ,margin, margin, margin);
    
    self.collectionView.bounces = NO;
    self.collectionView.backgroundColor = [UIColor whiteColor];
    self.collectionView.showsHorizontalScrollIndicator = NO;
    
    
}

@end
